﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Win.Model;

namespace Win.DAL
{
    public class LoginDAL
    {
        DbContext dbContext = new exp03dbEntities1();

        public ManagerInfo GetManagerInfo(string username,string passwd)
        {
            return dbContext.Set<ManagerInfo>().Where(u => u.MName.Equals(username) && u.MPwd.Equals(passwd)).FirstOrDefault();
        }

    }
}
